package com.yc.ssm.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yc.ssm.bean.AdminInfo;
import com.yc.ssm.biz.IAdminInfoBiz;
import com.yc.ssm.mapper.IAdminInfoMapper;
import com.yc.ssm.util.StringUtil;
@Service
public class AdminInfoBizImpl implements IAdminInfoBiz {
	@Autowired
	private IAdminInfoMapper adminInfoMapper;
    @Override
    public AdminInfo login(AdminInfo af) {
    	if(StringUtil.checkNull(af.getAname(),af.getPwd())) {
    		return null;
    	}
        return adminInfoMapper.login(af);
    }
}
